Tell you, you always rely on that firebug,chrome F12 what right click Copy XPath absolutely one day on the mine bombing you are not able to locate, this time you need to learn to write XPath, the human brain is smarter than the computer, and began
Appium retrieves control instances based on xpath. appiumxpath
As described in Appium's positioning methods for various FindElement controls based on Android, Appium has many methods for obtaining controls. One of them is to locate the control based
Appium has a number of ways to get controls, as described in the article, "Appium-based control localization practices for various findelement on Android ." One is to locate the control based on the XPath on the page where the control resides.This
Original address: http://blog.csdn.net/zhubaitian/article/details/39754233Appium has a number of ways to get controls, as described in the article, "Appium-based control localization practices for various findelement on Android." One is to locate
Appium has a number of ways to get controls, as described in the article, "Appium-based control localization practices for various findelement on Android." One is to locate the control based on the XPath of the page on which the control resides.This
XPath can quickly navigate to a node or attribute in the XML. The XPath syntax is simple, but powerful enough, and it is also the basic knowledge of using XSLT.Sample xml:
1234567891011121314151617181920212223242526272829
xmlversion=
1. BackgroundThe experiment object that this article tries to use is the SDK comes with the Notepad application instance, suppose already has two notes namely "Note1" and "Note2" to add to Notepad above, what we want to do is try to use XPath method
XPath gets control way 2.1 gets control by judging control propertiesAll properties of a control can be used as a judgment, such as whether its text,index,resource-id is clickable, and so on, for example:2.1.1 Finding a target control with
Try it out and basically fit all the results of the search.-(void) viewdidload{[Super Viewdidload]; Additional setup after loading the view, typically from a nib. Get Data Nsurl *url=[nsurl urlwithstring:@
xml| Program
I. Introduction to XML
XML (extensible Annotation language) is a standard of the web, which is mainly used for easy interaction, storage and use of data between web-based applications and servers.
Data encoded using XML standard has the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.